module(
    name = "test_dep",
    version = "1.0.0",
)

bazel_dep(name = "rules_go", version = "0.41.0")
bazel_dep(name = "gazelle", version = "0.31.0")

# An isolated extension usage does not share any tags with any other usage and results in a
# completely separate set of repos. We explicitly use different directives and patches here to
# verify that they do not interfere with those of the root test module.
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps", isolate = True)
go_deps.module(
    path = "github.com/stretchr/testify",
    sum = "h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=",
    version = "v1.8.0",
)
go_deps.gazelle_override(
    directives = [
        "gazelle:go_naming_convention import",
    ],
    path = "github.com/stretchr/testify",
)
go_deps.module_override(
    patch_strip = 1,
    patches = [
        "//patches:testify.patch",
    ],
    path = "github.com/stretchr/testify",
)
go_deps.module(
    indirect = True,
    path = "gopkg.in/yaml.v3",
    sum = "h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=",
    version = "v3.0.1",
)
go_deps.gazelle_override(
    directives = [
        "gazelle:go_naming_convention import",
    ],
    path = "gopkg.in/yaml.v3",
)
go_deps.module(
    indirect = True,
    path = "github.com/davecgh/go-spew",
    sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=",
    version = "v1.1.1",
)
use_repo(go_deps, "com_github_stretchr_testify")
